<template>
	<view class="all">
		<view class="head">
			<text class="name" @click="link('loginInfo/loginInfo')">{{myself.data.name||'设置登入信息'}}</text>
		</view>
	</view>
</template>

<script>
import { reactive } from 'vue'

	export default {
		data() {
			var myself=reactive({
				data:{}
			})
			return {
				myself
			}
		},
		mounted() {
			this.myself.data=uni.getStorageSync("myself")
			if(this.myself.data=='')//为空时返回
			    return
			this.myself.data=JSON.parse(this.myself.data)
		},
		methods: {
			link(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.all{
	margin: 0;
	padding: 0;
	.head{
		width: 100vw;
		height: 25vh;
		border-bottom: 1px solid skyblue;
		box-sizing: border-box;
		.name{
			position: absolute;
			top: 5vh;
			max-height: 10vh;
			left: 5vw;
			max-width: 30vw;
			overflow-x: hidden;
			text-overflow:ellipsis;
			white-space: nowrap;
			font-size: x-large;
		}
	}
}
</style>
